package com.fintech.third.dao.message;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.fintech.third.model.message.EdcPushMessageCategoryDto;
import com.fintech.third.model.message.EdcUserPushMessageCategoryDto;
import com.fintech.third.model.message.MessageInfoPageConditionDto;
import com.fintech.third.model.message.PushMessageInfo;
import com.fintech.third.model.message.UserPushMessageCategoryDto;

public interface PushMessageCategoryMapper {
	
	/**
	 * 插入消息推送大类接口
	 * @return
	 */
	public int insertMessageCategory(EdcUserPushMessageCategoryDto edcUserPushMessageCategoryDto);
	
	
	
	
	/**
	 * 查询插入消息推送大类记录
	 * @param userId
	 * @param categoryCode
	 * @return
	 */
	public EdcUserPushMessageCategoryDto selectMessageCategory(@Param("userId") String userId,@Param("categoryCode") String categoryCode);
	
	
	
	/**
	 * 更新已读未读状态
	 * @param id
	 * @param isRead
	 * @return
	 */
	public int updateMessageCategory (@Param("userId") String userId,@Param("categoryCode") String categoryCode,@Param("isRead") boolean isRead);
	
	
	
	/**
	 * 查询用户所有消息大类
	 * @return
	 */
	public List<UserPushMessageCategoryDto> selectUserAllMessageCategory(@Param("userId") String userId,@Param("pushCategory") String pushCategory);
	
	
	
	/**
	 * 查询推送消息的大类
	 * @return
	 */
	public List<EdcPushMessageCategoryDto> selectEdcPushMessageCategory(@Param("pushCategory") String pushCategory);
	
	
}
